package test6

object MatchCase {
  def main(args: Array[String]): Unit = {
    val l = List(1, 2, 3, 4)
    l match {
      case List(x, tail@_*) => {
        println(x, tail)
      }
      case _ => println("Not found")
    }
  }
}
